package com.jy.wms.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ProjectName: new-Wms
 * @Package: com.jy.wms.web
 * @ClassName: wmsArtificialReplenishmentRouter
 * @Description: 人工驱动补货
 * @Author: xmx
 * @CreateDate: 2018/7/13 11:45
 * @UpdateUser: 更新者
 * @UpdateDate: 2018/7/27 11:45
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */

@Controller
@RequestMapping("/ArtificialReplenishment")
public class wmsArtificialReplenishmentRouter {


    //到达主页面
    @RequestMapping(value = "/toMainPage")
    public  String toMainPage(){

        return  "ArtificialReplenishment/mainPage";
    }

    //新增货品种类
    @RequestMapping(value = "/addHuopin")
    public  String addHuopin(){

        return "huopin/addHuopin";
    }


    //编辑货品
    @RequestMapping(value = "/editHuopin")
    public String editHuopin(String id, Model model) {
        model.addAttribute("id",id);
        return "huopin/editHuopin";
    }

    //双击看明细
    @RequestMapping(value = "/detailHuopin")
    public String detailHuopin(String id, Model model) {
        model.addAttribute("id",id);
        return "huopin/detailHuopin";
    }

//    /*跳转到修改货品种类页面*/
//    @RequestMapping(value = "/editHuopin")
//    public String editkuwei(String id, Model model) {
//        model.addAttribute("id",id);
//        return "huopin/editHuopin";
//    }
}
